package study.alex.resumedb.gae.model;

import com.vaadin.ui.UI;
import study.alex.resumedb.gae.ResumeDBMaintUI;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: alex
 * Date: 14.12.13
 * Time: 12:01
 * SVN $Id$
 */
public enum resumeStatus implements Serializable {
    UNCHECKED("check.receipt"),
    CHECKED("there.is.an.acknowledgment.of.receipt.call.to.refine.the.results"),
    REJECTED("rejection"),
    ACCEPTED("invited.for.an.interview"),
    DELAYED("consideration.of.resume.delayed"),
    CONSIDERED("still.deciding"),
    RESERVED("resume.gone.into.reserve"),
    UNKNOWN("unknown.status.to.clarify");

    resumeStatus(String displayString) {
            this.display = displayString;
    }
    @Override
    public String toString() {
        return ((ResumeDBMaintUI) UI.getCurrent()).getBundle().getString(this.display);
    }

    private String display;
}
